package com.fit.pages.user;

import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.fit.annotations.AdminAccess;
import com.fit.dao.user.UserDAO;
import com.fit.entities.User;

@AdminAccess
public class Details {

	@Property
	@Persist
	private User user;
	
	@Inject
	private UserDAO userDAO;
	

	
	Object onActivate(String username) {
		user = userDAO.findByUsername(username);
		return null;

	}

}
